check process GUACAMOLE with pidfile {{ tomcat_home }}/tomcat.pid
  start program = "/usr/sbin/service guacamole start"
  stop program = "/usr/sbin/service guacamole stop"
  if failed
    port {{ gcm_port }}
  for 10 cycles then restart
  if 2 restarts within 20 cycles then unmonitor

check process GUACD with pidfile /var/run/guacd.pid
  start program = "/usr/sbin/service guacd start"
  stop program = "/usr/sbin/service guacd stop"
  if failed
    port 4822
  for 10 cycles then restart
  if 2 restarts within 20 cycles then unmonitor
